﻿Imports System.ComponentModel.DataAnnotations
Imports System.ComponentModel.DataAnnotations.Schema

<Table("Cliente")>
Public Class Cliente
    Implements IEntity

    <Key()>
    <DatabaseGenerated(DatabaseGeneratedOption.Identity)>
    Public Property IdCliente() As Integer

    Public Property Apellido() As String

    Public Property Nombre() As String

    Public Property Domicilio() As String

    Public Property Telefono1() As String

    Public Property Telefono2() As String

    Public Property IdLocalidad() As Integer

    <ForeignKey("IdLocalidad")>
    Public Overridable Property Localidad() As Localidad

    <NotMapped()>
    Public Property ID As Integer Implements IEntity.ID
        Get
            Return IdCliente
        End Get
        Set(value As Integer)
            IdCliente = value
        End Set
    End Property

End Class
